<template>
  <div class="form-preview-group">
    <label>
      {{_displayName}} 
      <span class="form-preview-notNull" v-if="showRequired">*</span>
    </label>
    <div class="form-preview-mock">
    </div>
  </div>
</template>

<script>
import { previewProps } from '@src/component/form/components/props';
import translate from '@src/component/form/mixin/translate.js'

export default {
  name: 'FormCurrencyTypePreview',
  props: previewProps,
  mixins:[translate],
  computed: {
    showRequired() {
      let field = this.field;
      return field.isNull == 0 && !this.disabled;
    }
  }
}
</script>